package com.draemoncode.action;

import javax.swing.JFrame;

import org.apache.mina.core.session.IoSession;

import com.draemoncode.util.JSONUtil;
import com.draemoncode.vo.Message;

public class TingzhiXiaZhuAction {
	
	public final static Integer type = 0xA4;
	
	public void exec(IoSession session, JFrame view){
		session.write(JSONUtil.toJson(buildMessage(view)));
	}
	
	public Message buildMessage(JFrame view){
		Message result = new Message();
		result.setType(type);
		return result;
	}
}
